package org.csmzxy.class2334;

class UserManager {
    static int userNum;

    public UserManager() {
        userNum++;
    }

    public static int getUserNum() {
        return userNum;
    }
}

public class Example10 {
    public static void main(String[] args) {
        UserManager userManager = new UserManager();
        UserManager userManager1 = new UserManager();
        UserManager userManager2 = new UserManager();
        System.out.println("目前已创建的用户数量为" + UserManager.getUserNum());
    }
}